package day03;

/**
 if...elseif演示
 */
public class IfElseIfDemo {
    public static void main(String[] args) {
        double price=2100;
        if (price>2000){
            price*=0.5;
            System.out.println("您的优惠价格是"+price);
        }else if (price>1000){
            price*=0.6;
            System.out.println("您的优惠价格是"+price);
        }else if (price>500){
            price*=0.8;
            System.out.println("您的优惠价格是"+price);
        }else if(price>300){
            System.out.println("你没优惠，价格是"+price);
        }else {
            System.out.println("没优惠，打骨折"+price);
        }
    }
}
